<template>
  <div>
      <div>
        <keep-alive>
          <!-- 二级路由出口 -->
          <router-view></router-view>
        </keep-alive>
      </div>
      <van-tabbar v-model="active">
        <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
        <van-tabbar-item icon="search" to="/tabulation">找房</van-tabbar-item>
        <van-tabbar-item icon="friends-o" to="/consult">咨询</van-tabbar-item>
        <van-tabbar-item icon="setting-o" to="/my">我的</van-tabbar-item>
      </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "layoue",
  props: {},
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style scoped lang="less">


</style>
